let App = getApp()
Page({
  data: {
    order: {},
  },
  onLoad(option) {
    this.setData({ id: option.id })
    this.getOrderDetail(option.id)
  },
  getOrderDetail(id) {
    App.HttpService.prodOrderDetail({id: id}).then(res => {
      let data = res.data
      if (data.code == 200) {
        this.setData({
          order: data.data
        })
      }
    })
  },
})